<extend name="Layout/layout"/>
<block name="style">
<style>
.labelwidth{ width:280px; }
.layui-input-block{ margin-left:320px; }
.layui-input-block .layui-input{ width:365px; }
.layui-input-block .textclass{ width: 350px; height: 90px; border-radius: 8px; padding: 0px 5px; border: 1px solid #D2D2D2!important; }

</style>
</block>
<block name="body">
	<div class="main-title">
		<h2>{$auth_group['id']?'编辑':'新增'}用户组</h2>
	</div>
    
    <form action="{:U('AuthManager/writeGroup')}" enctype="application/x-www-form-urlencoded" method="POST"
            class="form-horizontal">
        <div class="layui-form-item">
            <label class="layui-form-label labelwidth">用户组名称</label>
            <div class="layui-input-block">
                <input id="auth-title" type="text" name="title" class="text input-large layui-input" value="{$auth_group.title}"/>
            </div>
        </div>
        
        <div class="layui-form-item">
            <label class="layui-form-label labelwidth">描述</label>
            <div class="layui-input-block">
                <textarea class="textclass" id="auth-description" type="text" name="description">{$auth_group.description}</textarea>
            </div>
        </div>
        
        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="hidden" name="id" value="{$auth_group.id}" />
                <button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button>
                <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
            </div>
        </div>

    </form>
<block>
<block name="script">
<script type="text/javascript" charset="utf-8">
    //导航高亮
    //highlight_subnav('{:U('AuthManager/index')}');
</script>
</block>
